import request from '@/utils/request'
export default {
  //分页查询
  getPageList(page, limit, searchObj) {
    return request({
      url: '/admin/item/list/' + page + '/' + limit,
      method: 'get',
      params: searchObj
    })
  },
  //删除Item
  removeById(id) {
    return request({
      url: '/admin/item/remove/' + id,
      method: 'delete'
    })
  },
  //新增Item等级
  save(item) {
    return request({
      url: '/admin/item/save',
      method: 'post',
      data: item
    })
  },
  //根据id查询Item
  getById(id) {
    return request({
      url: '/admin/item/' + id,
      method: 'get'
    })
  },
  //修改Item
  updateById(item) {
    return request({
      url: '/admin/item/update',
      method: 'put',
      data: item
    })
  }
}
